<template>
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item :to="current.path">{{ current.label }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
import { mapState } from "vuex";

export default {
  name: "BreadCrumb",
  computed: {
    ...mapState({
      current: state => state.tab.currnetMenu
    })
  }
};
</script>

<style scoped></style>
